package redis.inaction.xx.utils;

import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

//内部框架类
@Component
public class UserClient {

    private static Map<String,String> authCodeUidMockMap = new HashMap<>();

    static{
        authCodeUidMockMap.put("AU10001", "10001");
        authCodeUidMockMap.put("AU10002", "10002");
        authCodeUidMockMap.put("AU10003", "10003");
        authCodeUidMockMap.put("AU10004", "10004");
        authCodeUidMockMap.put("AU10005", "10005");
        authCodeUidMockMap.put("AU10006", "10006");
        authCodeUidMockMap.put("AU10007", "10007");
        authCodeUidMockMap.put("AU10008", "10008");
    }

    public String fetchUserId(String authCode){
        return authCodeUidMockMap.get(authCode);
    }
}
